﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Data
{
    public class PropertyMetadata
    {
        public Guid Id { get; set; }

        public string Name { get; set; }

        public string Caption { get; set; }

        public bool IsIdentity { get; set; }

        public bool IsSystem { get; set; }

        public bool IsNullable { get; set; }

        public int MaxLength { get; set; }

        public int MinLength { get; set; }

        public string DefaultValue { get; set; }

        public int OrderIndex { get; set; }

        /// <summary>
        /// type
        /// type:flag
        /// </summary>
        public string TypeFlag { get; set; }
        public string TypeFlagCaption { get; set; }

        public Guid TypeId { get; set; }
        public TypeMetadata Type { get; set; }

        public Guid EntityId { get; set; }
    }
}
